package com.fhnew.app.util;

import android.app.Activity;
import android.view.Window;
import android.view.WindowManager;

public class ActivityUtil {

    public static void fullScreen(Activity activity){
        activity.requestWindowFeature(Window.FEATURE_NO_TITLE);//隐藏标题
        activity.getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN);//设置全屏
    }
}
